<!--$Id: runtime.so,v 10.38 2008/01/17 03:26:51 bostic Exp $-->
<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
<!--See the file LICENSE for redistribution information.-->
<html>
<head>
<title>Berkeley DB Reference Guide: Run-time configuration</title>
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
</head>
<body bgcolor=white>
<table width="100%"><tr valign=top>
<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Programmer Notes</dl></b></td>
<td align=right><a href="../program/compatible.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../program/faq.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p align=center><b>Run-time configuration</b></p>
<p>It is possible for applications to configure Berkeley DB at run-time to
redirect Berkeley DB library and system calls to alternate interfaces.  For
example, an application might want Berkeley DB to call debugging memory
allocation routines rather than the standard C library interfaces.  The
following interfaces support this functionality:</p>
<blockquote><pre><a href="../../api_c/set_func_close.html">db_env_set_func_close</a>
<a href="../../api_c/set_func_dirfree.html">db_env_set_func_dirfree</a>
<a href="../../api_c/set_func_dirlist.html">db_env_set_func_dirlist</a>
<a href="../../api_c/set_func_exists.html">db_env_set_func_exists</a>
<a href="../../api_c/set_func_file_map.html">db_env_set_func_file_map</a>
<a href="../../api_c/set_func_free.html">db_env_set_func_free</a>
<a href="../../api_c/set_func_fsync.html">db_env_set_func_fsync</a>
<a href="../../api_c/set_func_ftruncate.html">db_env_set_func_ftruncate</a>
<a href="../../api_c/set_func_ioinfo.html">db_env_set_func_ioinfo</a>
<a href="../../api_c/set_func_malloc.html">db_env_set_func_malloc</a>
<a href="../../api_c/set_func_open.html">db_env_set_func_open</a>
<a href="../../api_c/set_func_pread.html">db_env_set_func_pread</a>
<a href="../../api_c/set_func_pwrite.html">db_env_set_func_pwrite</a>
<a href="../../api_c/set_func_read.html">db_env_set_func_read</a>
<a href="../../api_c/set_func_realloc.html">db_env_set_func_realloc</a>
<a href="../../api_c/set_func_region_map.html">db_env_set_func_region_map</a>
<a href="../../api_c/set_func_rename.html">db_env_set_func_rename</a>
<a href="../../api_c/set_func_seek.html">db_env_set_func_seek</a>
<a href="../../api_c/set_func_unlink.html">db_env_set_func_unlink</a>
<a href="../../api_c/set_func_write.html">db_env_set_func_write</a>
<a href="../../api_c/set_func_yield.html">db_env_set_func_yield</a></pre></blockquote>
<p>These interfaces are available only on POSIX platforms and from the
Berkeley DB C language API.</p>
<p>A not-uncommon problem for applications is the new API in Solaris 2.6
for manipulating large files.  Because this API was not part of Solaris
2.5, it is difficult to create a single binary that takes advantage of
the large file functionality in Solaris 2.6, but still runs on Solaris
2.5.  <a href="solaris.txt">Example code</a> that supports this is
included in the Berkeley DB distribution, however, the example code was
written using previous versions of the Berkeley DB APIs, and is only useful
as an example.</p>
<table width="100%"><tr><td><br></td><td align=right><a href="../program/compatible.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../program/faq.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
</body>
</html>
